package com.delivery.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@ApiModel(description = "用户下单DTO")
@Data
public class PlaceOrderDTO {

    @ApiModelProperty(value = "地址簿id", required = true, example = "1")
    private Long addressBookId;

    @ApiModelProperty(value = "总金额", required = true, example = "20.5")
    private BigDecimal amount;

    @ApiModelProperty(value = "配送状态：1立即送出 0选择具体时间", required = true, example = "1")
    private Byte deliveryStatus;

    @ApiModelProperty(value = "预计送达时间", required = true, example = "2023-10-01 12:00")
    private LocalDateTime estimatedDeliveryTime;

    @ApiModelProperty(value = "打包费", required = true, example = "2")
    private Integer packAmount;

    @ApiModelProperty(value = "付款方式", required = true, example = "1")
    private Integer payMethod;

    @ApiModelProperty(value = "备注", required = true, example = "无辣")
    private String remark;

    @ApiModelProperty(value = "餐具数量", required = true, example = "2")
    private Integer tablewareNumber;

    @ApiModelProperty(value = "餐具数量状态 1按餐量提供 0选择具体数量", required = true, example = "1")
    private Byte tablewareStatus;
}